# 将json数据转换为ardunio封装好的sqlite支持的数据格式
test={
    "1": {
        "base_info": {
            "index": "10",
            "vue_name": "a_1_0_2_28_1",
            "deepcopy_data": {
                "index": 1,
                "en_name": "ardu_time_control",
                "ch_name": "时间控制库",
                "note": "",
                "name": "ardu_time_control[时间控制库]",
                "ps": {
                    "1": {
                        "k": "params1",
                        "v": "value1"
                    }
                },
                "deepcopy_data": {
                    "name": "时间控制库"
                }
            }
        },
        "dict": {
            "1": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "id",
                        "field_type": "INTEGER",
                        "default_value": 0,
                        "ch_name": "定时命令id",
                        "index_type": "None",
                        "note": "",
                        "name": "id[定时命令id]",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        },
                        "deepcopy_data": {
                            "name": "灌溉阀的id"
                        }
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "2": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "do_id",
                        "field_type": "INTEGER",
                        "default_value": 0,
                        "ch_name": "灌溉阀的id",
                        "index_type": "None",
                        "note": "",
                        "name": "do_id[灌溉阀的id]",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        }
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "3": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "start_time",
                        "field_type": "TEXT",
                        "default_value": "",
                        "ch_name": "开始控制时间",
                        "index_type": "None",
                        "note": "",
                        "deepcopy_data": {
                            "name": "关闭控制的时间"
                        },
                        "name": "start_time[开始控制时间]",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        }
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "4": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "end_time",
                        "field_type": "TEXT",
                        "default_value": "",
                        "ch_name": "关闭控制的时间",
                        "index_type": "None",
                        "note": "",
                        "deepcopy_data": {
                            "name": "预计消耗时间"
                        },
                        "name": "end_time[关闭控制的时间]",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        }
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "5": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "time_size",
                        "field_type": "TEXT",
                        "default_value": "",
                        "ch_name": "预计消耗时间",
                        "index_type": "None",
                        "note": "",
                        "deepcopy_data": {
                            "name": "控制条件"
                        },
                        "name": "time_size[预计消耗时间]",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        }
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "6": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "if",
                        "field_type": "TEXT",
                        "default_value": "",
                        "ch_name": "控制条件",
                        "index_type": "None",
                        "note": "",
                        "deepcopy_data": {
                            "name": "关闭控制的时间"
                        },
                        "name": "if[控制条件]",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        }
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "7": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "if_on",
                        "field_type": "INTEGER",
                        "default_value": 0,
                        "ch_name": "是否启用控制条件",
                        "index_type": "None",
                        "note": "",
                        "deepcopy_data": {
                            "name": "控制条件"
                        },
                        "name": "if_on[是否启用控制条件]",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        }
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "8": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "id_on",
                        "field_type": "INTEGER",
                        "default_value": 0,
                        "ch_name": "是否启用该控制",
                        "index_type": "None",
                        "note": "",
                        "deepcopy_data": {
                            "name": "是否启用控制条件"
                        },
                        "name": "id_on[是否启用该控制]",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        }
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "9": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "next_time",
                        "field_type": "INTEGER",
                        "default_value": 0,
                        "ch_name": "下一次执行的开始时间",
                        "index_type": "None",
                        "note": "",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        },
                        "deepcopy_data": {
                            "name": "开始控制时间"
                        },
                        "name": "next_time[下一次执行的开始时间]"
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "10": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "interval_time",
                        "field_type": "INTEGER",
                        "default_value": 0,
                        "ch_name": "执行的间隔时间",
                        "index_type": "None",
                        "note": "0代表每天，1代表隔一天执行一次",
                        "deepcopy_data": {
                            "name": "开始控制时间"
                        },
                        "name": "interval_time[执行的间隔时间]",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        }
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            }
        }
    },
    "2": {
        "base_info": {
            "index": "6",
            "vue_name": "a_1_0_2_28_1",
            "deepcopy_data": {
                "index": 1,
                "en_name": "ardu_do",
                "ch_name": "灌溉区库",
                "note": "",
                "ps": {
                    "1": {
                        "k": "params1",
                        "v": "value1"
                    }
                },
                "name": "ardu_do[灌溉区库]"
            }
        },
        "dict": {
            "1": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "id",
                        "field_type": "INTEGER",
                        "default_value": 0,
                        "ch_name": "灌溉阀的id",
                        "index_type": "None",
                        "note": "",
                        "deepcopy_data": {
                            "name": "执行的间隔时间"
                        },
                        "name": "id[灌溉阀的id]",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        }
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "2": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "name",
                        "field_type": "INTEGER",
                        "default_value": 0,
                        "ch_name": "灌溉阀的名称",
                        "index_type": "None",
                        "note": "",
                        "deepcopy_data": {
                            "name": "灌溉阀的id"
                        },
                        "name": "name[灌溉阀的名称]",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        }
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "3": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "if",
                        "field_type": "TEXT",
                        "default_value": "",
                        "ch_name": "控制条件",
                        "index_type": "None",
                        "note": "",
                        "deepcopy_data": {
                            "name": "灌溉阀的名称"
                        },
                        "name": "if[控制条件]",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        }
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "4": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "if_on",
                        "field_type": "INTEGER",
                        "default_value": 0,
                        "ch_name": "是否启用控制条件",
                        "index_type": "None",
                        "note": "",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        },
                        "deepcopy_data": {
                            "name": "控制条件"
                        },
                        "name": "if_on[是否启用控制条件]"
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "5": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "type",
                        "field_type": "INTEGER",
                        "default_value": 0,
                        "ch_name": "条件成立时 设备处于的状态",
                        "index_type": "None",
                        "note": "",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        },
                        "deepcopy_data": {
                            "name": "是否启用该控制"
                        },
                        "name": "type[条件成立时 设备处于的状态]"
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            },
            "6": {
                "base_info": {
                    "deepcopy_data": {
                        "index": 1,
                        "en_name": "level",
                        "field_type": "INTEGER",
                        "default_value": 0,
                        "ch_name": "控制优先级",
                        "index_type": "None",
                        "note": "",
                        "ps": {
                            "1": {
                                "k": "params1",
                                "v": "value1"
                            }
                        },
                        "deepcopy_data": {
                            "name": "是否启用该控制"
                        },
                        "name": "level[控制优先级]"
                    },
                    "vue_name": "a_1_0_2_29_1",
                    "index": 0
                },
                "dict": {}
            }
        }
    }
}

转换后的数据格式=[
[['数据库名称/同表名称',''],["字段1名称","字段类型"]]

]
# def change(dct):
